<div style="float:left;width:98%;height:auto;margin-left:10px;margin-top:10px;">
    <div style="float:left;">
        <div style="float:left;">
            <fieldset style="width:100px;height:auto;border:1px #D4D0C8 solid;">
                <legend style="font-size:13px;color:royalblue;font-weight:bold;margin-left:10px;">过滤</legend>
                <div style="float:left;margin:5px;">
                     <input type="text" value="请输入标题" />
                </div>
            </fieldset>
        </div>
        <div style="float:left;margin-left:80px;">
            <fieldset style="width:130px;height:auto;border:1px #D4D0C8 solid;">
                <legend style="font-size:13px;color:royalblue;font-weight:bold;margin-left:10px;">Actions</legend>
                <div style="float:left;margin:5px;font-size:13px;">
                    <a href="<?php echo url_for('article/new') ?>" style="text-decoration:none;color: #31537E;">发布文章</a>  || <a href="" style="text-decoration:none;color: #31537E;">删除文章</a>
                </div>
            </fieldset>
        </div>
    </div>
    <div style="float:Left;margin-top:10px;">
        <table  style="width:100%;height:auto;text-align: center;" cellspacing="0" cellpadding="0">
            <thead>
                <tr>
                    <th style="border:1px silver solid;border-right: none;background: #f0efef;" width="30">
                        <input type="checkbox" name="ids[]" />
                    </th>
                    <th style="border:1px silver solid;color: royalblue;background: #f0efef;" width="450">标题</th>
                    <th style="border:1px silver solid;border-left:none;color: royalblue;background: #f0efef;" width="100">来源</th>
                    <th style="border:1px silver solid;border-left:none;color: royalblue;background: #f0efef;" width="100">作者</th>
                    <th style="border:1px silver solid;border-left:none;color: royalblue;background: #f0efef;" width="100">分类</th>
                    <th style="border:1px silver solid;border-left:none;color: royalblue;background: #f0efef;" width="50">点击</th>
                    <th style="border:1px silver solid;border-left:none;color: royalblue;background: #f0efef;" width="50">状态</th>
                    <th style="border:1px silver solid;border-left:none;color: royalblue;background: #f0efef;" width="100">发布时间</th>
                    <th style="border:1px silver solid;border-left:none;color: royalblue;background: #f0efef;" width="100">更新时间</th>
                </tr>
            </thead>
            <tbody>
                <form id="batch">
                    <?php foreach($articles as $article ): ?>
                    <tr>
                        <td style="border:1px silver solid;border-right: none;background: #f0efef;" width="30">
                            <input type="checkbox" name="ids[]" value="<?php echo $article->getId() ?>" />
                        </td>
                        <td style="border:1px silver solid;border-top:none;"><a href="<?php echo url_for('article/edit').'?id='.$article->getId() ?>" style="text-decoration:none;color: #31537E;"><?php echo $article->getTitle() ?></a></td>
                        <td style="border:1px silver solid;border-left:none;border-top:none;"><?php echo $article->getSource() ?></td>
                        <td style="border:1px silver solid;border-left:none;border-top:none;"><?php echo $article->getAuthor() ?></td>
                        <td style="border:1px silver solid;border-left:none;border-top:none;"><?php echo $article->getArticleCategoryName() ?></td>
                        <td style="border:1px silver solid;border-left:none;border-top:none;"><?php echo $article->getReaders() ?></td>
                        <td style="border:1px silver solid;border-left:none;border-top:none;"><?php echo $article->getArticleStatus($article->getStatus()) ?></td>
                        <td style="border:1px silver solid;border-left:none;border-top:none;"><?php echo date('Y-m-d',  strtotime($article->getCreatedAt())) ?></td>
                        <td style="border:1px silver solid;border-left:none;border-top:none;"><?php echo date('Y-m-d',  strtotime($article->getUpdatedAt())) ?> </td>
                    </tr>
                    <?php endforeach; ?>
                </form>
            </tbody>
        </table>
    </div>
</div>